package com.ruoyi.cms.websocket_stomp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.security.Principal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser implements Principal {
    /**
     * 登陆的id
     */
    private String name;
 
    @Override
    public String getName() {
        return name;
    }
}